# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=nkiller2
pkgver=2.0
pkgrel=4
groups=('blackarch' 'blackarch-dos' 'blackarch-networking')
pkgdesc='A TCP exhaustion/stressing tool.'
arch=('x86_64' 'aarch64')
url='http://sock-raw.org/projects.html'
license=('GPL3')
depends=('openssl' 'libpcap')
source=('http://sock-raw.org/projects/nkiller2/nkiller2.c')
sha512sums=('baae5002da80baa90039075a5496770bc211da4cd2e33ea2623343fff1c10efd79235d0a85fbc6caca6a555de2a6063f6d00e57aadb2926c418186dfa849b410')

build() {
  gcc "$pkgname.c" -o $pkgname -lssl -lcrypto -lpcap -O2
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

